﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200148B RID: 5259
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UnlockAvatarPathScRsp : IMessage<UnlockAvatarPathScRsp>, IMessage, IEquatable<UnlockAvatarPathScRsp>, IDeepCloneable<UnlockAvatarPathScRsp>, IBufferMessage
	{
		// Token: 0x17004233 RID: 16947
		// (get) Token: 0x0600EB17 RID: 60183 RVA: 0x002745F3 File Offset: 0x002727F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UnlockAvatarPathScRsp> Parser
		{
			get
			{
				return UnlockAvatarPathScRsp._parser;
			}
		}

		// Token: 0x17004234 RID: 16948
		// (get) Token: 0x0600EB18 RID: 60184 RVA: 0x002745FA File Offset: 0x002727FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UnlockAvatarPathScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004235 RID: 16949
		// (get) Token: 0x0600EB19 RID: 60185 RVA: 0x0027460C File Offset: 0x0027280C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UnlockAvatarPathScRsp.Descriptor;
			}
		}

		// Token: 0x0600EB1A RID: 60186 RVA: 0x00274613 File Offset: 0x00272813
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarPathScRsp()
		{
		}

		// Token: 0x0600EB1B RID: 60187 RVA: 0x00274628 File Offset: 0x00272828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarPathScRsp(UnlockAvatarPathScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.avatarId_ = other.avatarId_;
			this.basicTypeIdList_ = other.basicTypeIdList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EB1C RID: 60188 RVA: 0x00274691 File Offset: 0x00272891
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarPathScRsp Clone()
		{
			return new UnlockAvatarPathScRsp(this);
		}

		// Token: 0x17004236 RID: 16950
		// (get) Token: 0x0600EB1D RID: 60189 RVA: 0x00274699 File Offset: 0x00272899
		// (set) Token: 0x0600EB1E RID: 60190 RVA: 0x002746A1 File Offset: 0x002728A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17004237 RID: 16951
		// (get) Token: 0x0600EB1F RID: 60191 RVA: 0x002746AA File Offset: 0x002728AA
		// (set) Token: 0x0600EB20 RID: 60192 RVA: 0x002746B2 File Offset: 0x002728B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17004238 RID: 16952
		// (get) Token: 0x0600EB21 RID: 60193 RVA: 0x002746BB File Offset: 0x002728BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BasicTypeIdList
		{
			get
			{
				return this.basicTypeIdList_;
			}
		}

		// Token: 0x17004239 RID: 16953
		// (get) Token: 0x0600EB22 RID: 60194 RVA: 0x002746C3 File Offset: 0x002728C3
		// (set) Token: 0x0600EB23 RID: 60195 RVA: 0x002746CB File Offset: 0x002728CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EB24 RID: 60196 RVA: 0x002746D4 File Offset: 0x002728D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UnlockAvatarPathScRsp);
		}

		// Token: 0x0600EB25 RID: 60197 RVA: 0x002746E4 File Offset: 0x002728E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UnlockAvatarPathScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.AvatarId == other.AvatarId && this.basicTypeIdList_.Equals(other.basicTypeIdList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EB26 RID: 60198 RVA: 0x00274758 File Offset: 0x00272958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			num ^= this.basicTypeIdList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EB27 RID: 60199 RVA: 0x002747DA File Offset: 0x002729DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EB28 RID: 60200 RVA: 0x002747E2 File Offset: 0x002729E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EB29 RID: 60201 RVA: 0x002747EC File Offset: 0x002729EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.AvatarId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.Reward);
			}
			this.basicTypeIdList_.WriteTo(ref output, UnlockAvatarPathScRsp._repeated_basicTypeIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EB2A RID: 60202 RVA: 0x00274874 File Offset: 0x00272A74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarId);
			}
			num += this.basicTypeIdList_.CalculateSize(UnlockAvatarPathScRsp._repeated_basicTypeIdList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EB2B RID: 60203 RVA: 0x002748F8 File Offset: 0x00272AF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UnlockAvatarPathScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.AvatarId != MultiPathAvatarType.None)
			{
				this.AvatarId = other.AvatarId;
			}
			this.basicTypeIdList_.Add(other.basicTypeIdList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EB2C RID: 60204 RVA: 0x00274985 File Offset: 0x00272B85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EB2D RID: 60205 RVA: 0x00274990 File Offset: 0x00272B90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 8U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.AvatarId = (MultiPathAvatarType)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 88U || num == 90U)
					{
						this.basicTypeIdList_.AddEntriesFrom(ref input, UnlockAvatarPathScRsp._repeated_basicTypeIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005D15 RID: 23829
		private static readonly MessageParser<UnlockAvatarPathScRsp> _parser = new MessageParser<UnlockAvatarPathScRsp>(() => new UnlockAvatarPathScRsp());

		// Token: 0x04005D16 RID: 23830
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D17 RID: 23831
		public const int RewardFieldNumber = 10;

		// Token: 0x04005D18 RID: 23832
		private ItemList reward_;

		// Token: 0x04005D19 RID: 23833
		public const int AvatarIdFieldNumber = 6;

		// Token: 0x04005D1A RID: 23834
		private MultiPathAvatarType avatarId_;

		// Token: 0x04005D1B RID: 23835
		public const int BasicTypeIdListFieldNumber = 11;

		// Token: 0x04005D1C RID: 23836
		private static readonly FieldCodec<uint> _repeated_basicTypeIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x04005D1D RID: 23837
		private readonly RepeatedField<uint> basicTypeIdList_ = new RepeatedField<uint>();

		// Token: 0x04005D1E RID: 23838
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04005D1F RID: 23839
		private uint retcode_;
	}
}
